﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace neside3.ext
{

    public interface IDocumentInEditor
    {
        string projectfolder
        {
            get;
        }
        string filename
        {
            get;
        }
        UIElement ui_editor
        {
            get;
        }
        UIElement ui_fileinfo
        {
            get;
        }
        void Load();
        void Save();
        event Action<IDocumentInEditor> OnChangeInEditor;
        //event Action<IDocumentInEditor> OnSaveInEditor;
    }

    /// <summary>
    /// 
    /// </summary>
    public interface IFileEditor
    {
        string[] extName
        {
            get;
        }
        bool SetProject(ILogger logger, string projectfolder);
        IDocumentInEditor OpenFile(ILogger logger, string filename);
        void CloseFile(IDocumentInEditor doc);
    }
}
